﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class YuanGong
    {
        private int gonghao;
        private string name;
        private string msg;

        public int GongHao { get { return this.gonghao; } set { gonghao = value; } }
        public string Name { get; set; }
        public string Msg { get; set; }

        public void YouCan(int gonghao, string name, string msg)
        {
            Console.WriteLine("我的工号是{0},我的姓名是{1},我的部门是{2}", gonghao, Name, msg);
        }
        public void WuCan()
        {
            Console.WriteLine("我的工号是{0},我的姓名是{1},我的部门是{2}", this.gonghao, this.Name, this.msg);
        }
    }
}
